package com.pactera.miyuangroup.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.pactera.miyuangroup.db.entity.VehicleInfo;
import com.baomidou.mybatisplus.service.IService;
import com.pactera.miyuangroup.vo.request.web.PageDeliverymanAdjustReq;
import com.pactera.miyuangroup.vo.request.web.UpdateDeliverymanAdjustReq;
import com.pactera.miyuangroup.vo.request.web.VehicleInfoRequest;
import com.pactera.miyuangroup.vo.response.User;
import com.pactera.miyuangroup.vo.response.web.PageDeliverymanAdjustRes;
import com.pactera.miyuangroup.vo.response.web.VehicleInfoRes;
import com.pactera.miyuangroup.vo.response.web.VendorInfoRes;
import org.springframework.boot.autoconfigure.security.SecurityProperties;

import java.util.List;

/**
 * <p>
 * 车辆信息 服务类
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
public interface VehicleInfoService extends IService<VehicleInfo> {

    /*
    *查询车辆列表信息
    * */
    Page<VehicleInfoRes> getVehicleInfoList(VehicleInfoRequest vehicleRequest,String ordId);


    /*
    * 查询售货机信息
    * */
    List<VendorInfoRes> getVendorInfoList(String vehicleId);


    /**
     * 查询售货机人员调整列表
     *
     * @param req
     * @return
     */
    Page<PageDeliverymanAdjustRes> selectListPage(PageDeliverymanAdjustReq req,String org);


    /**
     * web 端 分配用户
     *
     * @param createrId  操作人ID
     * @param req
     * @return
     */
    boolean vehicleAdjustUser(String vehicleId,String createrId, UpdateDeliverymanAdjustReq req);

    /**
     * 同步车辆信息
     */
    boolean syncMiyuanVehicleInfo();

    /**
     * 同步车辆信息
     */
    void syncMiyuanVehicleSchedulerInfo();

}
